package com.skypan.myapplication.http;

import com.google.gson.Gson;
import com.skypan.myapplication.bean.RegisterR;

import com.zhy.http.okhttp.callback.Callback;

import java.io.IOException;

import okhttp3.Response;

public abstract class RegisterCallback extends Callback <RegisterR>{
    @Override
    public RegisterR parseNetworkResponse(Response response, int id) throws IOException
    {
        String string = response.body().string();
        RegisterR user = new Gson().fromJson(string, RegisterR.class);
        return user;
    }
}
